From: Colin Walters Date: Thu, 14 May 2015 02:11:39 +0000 (-0400) Subject: tests: Fix writable repo test X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~712 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3f9fa58213e7f9f48eee1f98cbb868127089c176;p=ostree.git tests: Fix writable repo test When I removed the `transaction` symlink, that made this test start failing. Fix it by doing `chmod` on `repo/objects`, which is what the core `ostree_repo_is_writable()` looks at. --- diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 753f5004..834e76dd 100755 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -394,10 +394,10 @@ if test "$(id -u)" != "0"; then cd ${test_tmpdir} rm -f expected-fail error-message $OSTREE init --mode=archive-z2 --repo=repo-noperm - chmod -w repo-noperm + chmod -w repo-noperm/objects $OSTREE --repo=repo-noperm pull-local repo 2> error-message || touch expected-fail assert_has_file expected-fail assert_file_has_content error-message "Permission denied" - chmod +w repo-noperm + chmod +w repo-noperm/objects echo "ok unwritable repo was caught" fi